package com.muki.simple.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 启动器
 * @author ljh_2017
 *
 */
@ConfigurationProperties(prefix="muki.spider")
public class InterestConf {

	private String[] root ;

	//兴趣点
	private String name ;

	//运行数目
	private int num ;

	//内容正则表达式
	private String contextRegx ;

	//标题正则表达式
	private String titleRegx ;

	//时间正则表达式
	private String dateRegx ;

	//content xpath表达式
	private String contentXpath ;

	//title xpath表达式
	private String titleXpath ;

	//date xpath表达式
	private String dateXpath ;

	private String[] linkXpath ;

	private String[] linkRegx ;

	private String[] matchRegx;

	private String[] matchXpath;

	public String[] getRoot() {
		return root;
	}

	public void setRoot(String[] root) {
		this.root = root;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public String getContextRegx() {
		return contextRegx;
	}

	public void setContextRegx(String contextRegx) {
		this.contextRegx = contextRegx;
	}

	public String getTitleRegx() {
		return titleRegx;
	}

	public void setTitleRegx(String titleRegx) {
		this.titleRegx = titleRegx;
	}

	public String getDateRegx() {
		return dateRegx;
	}

	public void setDateRegx(String dateRegx) {
		this.dateRegx = dateRegx;
	}

	public String getContentXpath() {
		return contentXpath;
	}

	public void setContentXpath(String contentXpath) {
		this.contentXpath = contentXpath;
	}

	public String getTitleXpath() {
		return titleXpath;
	}

	public void setTitleXpath(String titleXpath) {
		this.titleXpath = titleXpath;
	}

	public String getDateXpath() {
		return dateXpath;
	}

	public void setDateXpath(String dateXpath) {
		this.dateXpath = dateXpath;
	}

	public String[] getLinkXpath() {
		return linkXpath;
	}

	public void setLinkXpath(String[] linkXpath) {
		this.linkXpath = linkXpath;
	}

	public String[] getLinkRegx() {
		return linkRegx;
	}

	public void setLinkRegx(String[] linkRegx) {
		this.linkRegx = linkRegx;
	}

	public String[] getMatchRegx() {
		return matchRegx;
	}

	public void setMatchRegx(String[] matchRegx) {
		this.matchRegx = matchRegx;
	}

	public String[] getMatchXpath() {
		return matchXpath;
	}

	public void setMatchXpath(String[] matchXpath) {
		this.matchXpath = matchXpath;
	}

}
